// $Id: MockBuild.cs 102 2006-01-09 18:01:13Z iko $

using System;
using System.Collections;
using System.Text;
using Microsoft.Build.Framework;
using System.Diagnostics;

namespace cosoware.MSBuildTasks.Subversion.Tests
{
    /// <summary>
    /// Build engine used for testing tasks.
    /// </summary>
    public class StubBuildEngine : IBuildEngine
    {
        #region IBuildEngine Members

        public bool BuildProjectFile(string projectFileName, string[] targetNames, IDictionary globalProperties, IDictionary targetOutputs)
        {
            return false;
        }

        public int ColumnNumberOfTaskNode
        {
            get { return 0; }
        }

        public bool ContinueOnError
        {
            get { return false; }
        }

        public int LineNumberOfTaskNode
        {
            get { return 0; }
        }

        public void LogCustomEvent(CustomBuildEventArgs e)
        {
            Debug.Write("Event: ");
            Debug.WriteLine(e.Message);
        }

        public void LogErrorEvent(BuildErrorEventArgs e)
        {
            Debug.Write("Error: ");
            Debug.WriteLine(e.Message);
        }

        public void LogMessageEvent(BuildMessageEventArgs e)
        {
            Debug.Write("Message: ");
            Debug.WriteLine(e.Message);
        }

        public void LogWarningEvent(BuildWarningEventArgs e)
        {
            Debug.Write("Warning: ");
            Debug.WriteLine(e.Message);
        }

        public string ProjectFileOfTaskNode
        {
            get { return String.Empty; }
        }

        #endregion
    }
}
